//
//  HXItemBaseMessageTableViewCell.m
//  KD
//
//  Created by ifly on 16/3/25.
//  Copyright © 2016年 Whx. All rights reserved.
//

#import "HXItemBaseMessageTableViewCell.h"

@interface HXItemBaseMessageTableViewCell()
@property (weak, nonatomic) IBOutlet UILabel *typeLabel;
@property (weak, nonatomic) IBOutlet UILabel *messageLabel;
@end

@implementation HXItemBaseMessageTableViewCell
- (void)setData:(HXLineMessageModel *)data{
    _data = data;
    
    if([GlobalUtil isNilValue:_data.name]){
        self.typeLabel.text = @"暂无";
    }else{
        self.typeLabel.text = [NSString stringWithFormat:@"%@:",_data.name];
    }
    
    if([GlobalUtil isNilValue:_data.message]){
        self.messageLabel.text = @"暂无";
    }else{
        self.messageLabel.text = _data.message;
    }
    
}
@end
